package br.com.sga.modelo.dao;

import br.com.sga.erro.ConexaoException;
import br.com.sga.erro.DaoException;
import br.com.sga.modelo.entidade.Usuario;
import java.util.List;

/**
 *
 * @author kenzo
 */
public interface UsuarioDao {

    public abstract void salvar(Usuario bean) throws ConexaoException, DaoException;

    public abstract void atualizar(Usuario bean) throws ConexaoException, DaoException;

    public abstract void excluir(Integer id) throws ConexaoException, DaoException;

    public abstract Usuario getBean(Integer id) throws ConexaoException, DaoException;

    public Usuario getByLogin(String login) throws ConexaoException, DaoException;

    public abstract List<Usuario> getBeans() throws ConexaoException, DaoException;
}
